package com.ruoyi.purchase.pojo;

import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购申请清单对象 t_purchase_apply_material
 *
 * @author ruoyi
 * @date 2024-10-25
 */
@Setter
@Getter
public class PurchaseApplyMaterial extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Integer id;

    /**
     * 采购申请id
     */
    @Excel(name = "采购申请id")
    private Integer purchaseApplyId;

    /**
     * 物料id
     */
    @Excel(name = "物料id")
    private Integer materialId;

    /**
     * 物料的数量
     */
    @Excel(name = "物料的数量")
    private Integer purchaseApplyNumber;

    /**
     * 状态0未审核;1审核通过:2审核驳回
     */
    @Excel(name = "状态0未审核;1审核通过:2审核驳回")
    private Integer status;

    private String materialName;

    private Integer unitId;
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("purchaseApplyId", getPurchaseApplyId())
                .append("materialId", getMaterialId())
                .append("purchaseApplyNumber", getPurchaseApplyNumber())
                .append("status", getStatus())
                .toString();
    }
}